<div class="sectionHeader">
    <hr>
    <button type="button" onclick="takeout.copy('${ctxPath!}/dbtable/listDialog',1, 'sychronize_all')" class="btn btn-info mainButtonRight"
            title="同步数据库功能会将所有表的数据进行同步(除过模版消息收集、参数设置、用户、数据库管理表）">同步数据库</button>

    <button type="button" onclick="takeout.del('${ctxPath!}/dbtable/del',1, '')" class="btn btn-info mainButtonRight">全部删除</button>
    <button type="button" class="btn btn-info mainButtonRight"><a href="javascript:takeout.openEdit('${ctxPath!}/dbtable/edit', null);" class="mianAcolor">+ 新增</a></button>
</div>
<form id="queryForm" action="${ctxPath!}/dbtable/list" method="POST">
    <div class="sectionForm">
        <div class="form-inline">
            <div class="sectionFormFirstRow">
                <div class="form-group sectionFormLabel">
                    <label class="mainColor">标题:</label>
                    <input type="text" name="title" class="form-control" id="peopleName" required="" />
                </div>
                <div class="form-group sectionFormLabel">
                    <label class="mainColor">大类:</label>
                    <#dictTag val="${categoryid!}" type="select" style="margin-left:5px;" group="dbtable"  pname="categoryid" defaultNumber="0"></#dictTag>
                </div>
                <button type="button" onclick="takeout.ajaxFormMainPanel('queryForm')" class="btn btn-info" style="width:90px;">查询</button>
            </div>
        </div>
    </div>
    <div class="sectionFormContent">
        <div class="sectionFormHeadline">
        </div>
        <hr>
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th style="width: 50px;" ><a href="javascript:takeout.selectAll();">全选</a></th>
                <th>小程序名</th>
                <th>数据库名</th>
                <th>类型</th>
                <th>数据库url</th>
                <th>数据库用户名</th>
                <th>数据库密码</th>
                <th>分享次数</th>
                <th>二维码页面</th>
                <th>影视模版id</th>
            </tr>
            </thead>

            <% for(im in data.list){ %>
            <tr class="a">
                <td style="width: 50px;text-align:center"><input class="a" type="checkbox" value="${im.id}" /></td>
                <td>${im.title!}</td>
                <td>${im.tablename!}</td>
                <td>${oneToManyDictDisplayFunc(im.category!"0",'sys_dict','name','dbtable')}</td>
                <td>${im.jdbcurl!}</td>
                <td>${im.jdbcusername!}</td>
                <td>${im.jdbcpassword!}</td>
                <td>${im.sharecount!}</td>
                <td>${im.qrcodepage!}</td>
                <td>${im.videotemplateid!}</td>
                <td style="width: 70px;">
                    <a id="a" href="javascript:takeout.openEdit('${ctxPath!}/dbtable/edit?id=${im.id}&categoryid=${categoryid!}', null)">修改</a>
                    <a class="a" href="javascript:takeout.del('${ctxPath!}/dbtable/del?categoryid=${categoryid!}' ,0, '${im.id!}')">删除</a>
                    <!--<a class="a" href="javascript:takeout.del('${ctxPath!}/dbtable/del' ,0, '${im.id!}')" title="同步 分享次数，二维码页面，影视更新模版id到相应数据库参数设置表中（为空则不同步）">同步参数</a>-->
                </td>
            </tr>
            <%}%>
        </table>
        <div id="splitPageDiv" class="splitPage">
            <% include("../common/comm_page.html", {"divId" : "manage_content", "formId" : "queryForm", "splitPageDiv" : "splitPageDiv"}){} %>
        </div>
    </div>
</form>